๐Ÿ“ฆ threepointone / redux-react-local

๐Ÿ“„ 02 getting started.md ยท 27 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27```jsx
import {reducer} from 'redux-react-local';

// when you're constructing your redux store,
// add `local` as a key with the above `reducer`
// example -
const store = createStore(combineReducers({
  // ... your other reducers
  local: reducer
}));

// and wrap your app with the `Root` component,
// preferably right under where you'd include react-redux'
// <Provider>. example -
// ...
<Provider store={store}>
  <Root>
    <App/>
  </Root>
</Provider>
// ...
```


// you can now annotate any of your components with `@local`

```